package com.xjd.transport.work;

import java.io.InputStream;

import com.xjd.transport.ReceiveHandler;

public class ReceiveThread extends Thread {
	InputStream in;
	ReceiveHandler handler;
	
	public ReceiveThread(InputStream in, ReceiveHandler handler) {
		this.in = in;
		this.handler = handler;
	}
	
	public void run() {
		handler.dataReceived(in);
	}
}
